package com.china.produce.enums;

import com.china.produce.exception.BaseErrorInfoInterface;
import lombok.Getter;


/**
 * @ClassName
 * @Author niujie
 * @Version
 * @Description
 * @CreateTime 2023/2/18
 */
public enum CommonEnum implements BaseErrorInfoInterface {

    SUCCESS("200", "成功!"),

    BODY_NOT_MATCH("400","请求的数据格式不符!"),

    SIGNATURE_NOT_MATCH("401","请求的数字签名不匹配!"),

    NOT_FOUND("404", "未找到该资源!"),

    INTERNAL_SERVER_ERROR("500", "服务器内部错误!"),

    SERVER_BUSY("503","服务器正忙，请稍后再试!");

    @Getter
    private String resultCode;

    @Getter
    private String resultMsg;

    CommonEnum(String code, String msg) {
        this.resultCode = code;
        this.resultMsg = msg;
    }
}
